import request from '@/utils/request'

// 查询房间列表
export function listUser(query) {
    return request({
        url: '/user/crm/user/listPage',
        method: 'get',
        params: query
    })
}

// 查询房间详细
export function getUser(id) {
    return request({
        url: '/user/crm/user/' + id,
        method: 'get'
    })
}

// 新增房间
export function addUser(data) {
    return request({
        url: '/user/crm/user/add',
        method: 'post',
        data: data
    })
}

// 修改房间
export function updateUser(data) {
    return request({
        url: '/user/crm/user/edit',
        method: 'put',
        data: data
    })
}

// 删除房间
export function delUser(id) {
    return request({
        url: '/user/crm/user/' + id,
        method: 'delete'
    })
}


// 主播审核列表
export function anchorCheckList(query) {
    return request({
        url: '/user/crm/anchor-apply/listPage',
        method: 'get',
        params:query
    })
}


// 主播审核列表
export function anchorCheck(data) {
    return request({
        url: '/user/crm/anchor-apply/check',
        method: 'post',
        data:data
    })
}